package com.qf.artical.service.impl;

import com.qf.artical.mapper.UserMapper;
import com.qf.artical.pojo.User;
import com.qf.artical.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author
 */
@Service
public class UserServiceImpl implements UserService {

    private UserMapper userMapper;

    @Autowired
    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public void AddUser(User user) {


        userMapper.AddUser(user);

    }

    @Override
    public User findUserByName(String name) {
        return userMapper.findUserByName(name);
    }
}
